package com.example.design.practice.ratelimit.v1.rule;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @Description TODO
 * @date 2022/11/16 15:29
 * @Author liuzhihui
 * @Version 1.0
 */
public class RuleConfig {
    private List<AppRuleConfig> configs;

    public List<AppRuleConfig> getConfigs() {
        return configs;
    }

    public void setConfigs(List<AppRuleConfig> configs) {
        this.configs = configs;
    }

    @Setter
    @Getter
    public static class AppRuleConfig {
        private String appId;
        private List<ApiLimit> limits;

        public AppRuleConfig() {
        }

        public AppRuleConfig(String appId, List limits) {
            this.appId = appId;
            this.limits = limits;
        }
    }
}